import request from '../utils/request'

// 获取首页品牌推荐数据
// limit - 要获取的品牌数量
export const findBrand = (limit=6) => {
  return request({
    method: 'get',
    url: '/home/brand',
    params: {
      limit
    }
  })
}

// 获取首页轮播图
export const findBanner = () => {
  return request({
    method: 'get',
    url: '/home/banner'
  })
}

// 获取首页新鲜好物
export const findNew = () => {
  return request({
    method: 'get',
    url: '/home/new'
  })
}
// 获取首页人气推荐
export const findHot = () => {
  return request({
    method: 'get',
    url: '/home/hot'
  })
}
// 获取首页产品模块
export const findProduct = () => {
  return request({
    method: 'get',
    url: '/home/goods'
  })
}
// 获取首页产品模块
export const findSpecial = () => {
  return request({
    method: 'get',
    url: '/home/special',
  })
}